package com.socialuni.jimei.controller.social;

import com.socialuni.api.model.ResultRO;
import com.socialuni.sdk.api.CommentAPI;
import com.socialuni.api.model.QO.comment.SocialCommentDeleteQO;
import com.socialuni.api.model.QO.comment.UniCommentPostQO;
import com.socialuni.api.model.RO.comment.TalkCommentRO;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class SocialCommentController implements CommentAPI {
    @Resource
    CommentAPI commentAPI;

    @Override
    public ResultRO<TalkCommentRO> addComment(UniCommentPostQO commentVO) {
        return commentAPI.addComment(commentVO);
    }

    @Override
    public ResultRO<Object> deleteComment(SocialCommentDeleteQO commentVO) {
        return commentAPI.deleteComment(commentVO);
    }
}
